
# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       王景渊  
# Name:         随堂练习01
# Description:
# Author:       dell
# Date:         2019/3/2
#-------------------------------------------------------------------------------
# dict = {"name":'王景渊',"age":18}
# print(dict)
# dict1 = {}
# print(dict1)
# 字典在使用的过程中需要先声明

#字典的转换过程中，要成对出现，如果不是则会报错
#即元素是键值关系如下
# names = [[ajaxdata.json,2],[3,4]]
# d = dict(names)
# print(d)
names = [['name',2 ] ,['sex','男'],('age',18)]
d = dict(names)
print(d)
